import api from '@/api/api'

const contentMangeRoles = {
  name: '内容',
  role: '/contentMange',
  children: [{
    name: '内容',
    role: '/content',
    api:[
      api.topicListAll,
      api.channelList,
      api.contentTree,
      api.typeList,
      api.contentPage,
      api.contentList,
      api.contentShareTree,
      api.configContentChargeGet,
      api.typeGet,
      api.tplModelList,
      api.groupList,
      api.fullTextSearchChannelList,
      api.channelGet,
      api.itemList,
      api.contentGet,
      api.modelList,
      api.getSteps,
      '/content/list'
    ],
    children: [
      {
        name: '列表',
        role: '/content/list',
        api: [api.contentList]
      }, {
        name: '添加',
        role: '/content/save',
        api: [api.contentSave]
      }, {
        name: '修改',
        role: '/content/update',
        api: [api.contentUpdate]
      }, {
        name: '删除',
        role: '/content/delete',
        api: [api.contentDelete]
      }, {
        name: '保存置顶',
        role: '/content/priority',
        api: [api.contentPriority]
      }, {
        name: '推荐',
        role: '/content/contentRecommend',
        api: [api.contentRecommend]
      }, {
        name: '移动',
        role: '/content/contentMove',
        api: [api.contentMove]
      }, {
        name: '复制',
        role: '/content/contentCopy',
        api: [api.contentCopy]
      }, {
        name: '审核',
        role: '/content/contentCheck',
        api: [api.contentCheck]
      }, {
        name: '退回',
        role: '/content/contentReject',
        api: [api.contentReject]
      }, {
        name: '提交',
        role: '/content/contentSubmit',
        api: [api.contentSubmit]
      }, {
        name: '生成静态页',
        role: '/content/contentStatic',
        api: [api.contentStatic]
      }, {
        name: '推送',
        role: '/content/contentPush',
        api: [api.contentPush]
      }, {
        name: '推送至专题',
        role: '/content/contentSend',
        api: [api.contentSend]
      }, {
        name: '归档',
        role: '/content/contentPigeonhole',
        api: [api.contentPigeonhole]
      }
      , {
        name: '出档',
        role: '/content/contentUnpigeonhole',
        api: [api.contentUnpigeonhole]
      }, {
        name: '群发微信',
        role: '/content/contentSendToWeixin',
        api: [api.contentSendToWeixin]
      }
    ]
  }, {
    name: '专题管理',
    role: '/topic',
    api: [api.topicGet],
    children: [
      {
        name: '列表',
        role: '/topic/list',
        api: [api.topicList]
      },
      {
        name: '添加',
        role: '/topic/save',
        api: [api.topicSave,
          api.topicTplList]
      },
      {
        name: '删除',
        role: '/topic/delete',
        api: [api.topicDelete]
      },
      {
        name: '修改',
        role: '/topic/update',
        api: [api.topicUpdate,
          api.topicTplList]
      }, {
        name: '保存排序',
        role: '/topic/priority',
        api: [api.topicPriority]
      }
    ]
  }]
}
export default contentMangeRoles;
